package cn.project.engineering.http

import cn.project.engineering.http.bean.*
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 *
 * @author  lifuhai
 * @date 2021/2/18 15:02
 */
interface ApiService {

    @GET("ProcessService.aspx")
    fun checkYvmian(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1014", @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<YvminInfo>>

    @GET("ProcessService.aspx")
    fun getScreenControlInfo(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1004", @Query("MacIP", encoded = true) MacIP: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<ScreenControlInfo>>

    @GET("ProcessService.aspx")
    fun getFactoryInfo(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1001", @Query("MacIP", encoded = true) MacIP: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<FactoryInfo>>

    @GET("ProcessService.aspx")
    fun queryBannerState(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1017", @Query("MacIP", encoded = true) MacIP: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<BannerStateInfo>>

    @GET("ProcessService.aspx")
    fun queryBanner(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1002", @Query("MacIP", encoded = true) MacIP: String, @Query("IsVideo") IsVideo: Int = 0, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<BannerInfo>>

    @GET("ProcessService.aspx")
    fun getMenuInfo(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1003", @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<MenuInfo>>

    @GET("ProcessService.aspx")
    fun checkApk(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1006", @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<ApkInfo>>

    @GET("ProcessService.aspx")
    fun checkSop(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1005",  @Query("MacIP", encoded = true) MacIP: String,@Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<SopInfo>>


    @GET("ProcessService.aspx")
    fun tijiaoSop(@Query("method") method: String = "SaveData", @Query("ProcessID") ProcessID: String = "1001",  @Query("MacIP", encoded = true) MacIP: String,@Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<String>
    @GET("ProcessService.aspx")
    fun getPass(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1016",@Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<PassInfor>>

    //设备点检表单(左上)
    @GET("ProcessService.aspx")
    fun dianjianOne(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1007", @Query("MacIP", encoded = true) MacIP: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<MutableList<DianjiaOneInfo>>
    //设备点检表单(左下)
    @GET("ProcessService.aspx")
    fun dianjianTwo(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1008", @Query("FBillNO", encoded = true) FBillNO: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<MutableList<DianjiaTwonfo>>
    //设备点检表单(右上)
    @GET("ProcessService.aspx")
    fun dianjianThree(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1009", @Query("MacIP", encoded = true) MacIP: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<MutableList<DianjiaThreeInfo>>
    //设备点检表单(右下)
    @GET("ProcessService.aspx")
    fun dianjianFour(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1010", @Query("ChkNO", encoded = true) ChkNO: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<MutableList<DianjiaFourInfo>>
    //设备点检表单(提交)
    @GET("ProcessService.aspx")
    fun dianjianTijiao(@Query("method") method: String = "SaveData", @Query("ProcessID") ProcessID: String = "1002", @Query("MacAdd", encoded = true) MacAdd: String, @Query("json", encoded = true) json: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<String>

    //文件分配查询文件(左上)
    @GET("ProcessService.aspx")
    fun fileDistribution(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1019", @Query("IsVideo", encoded = true) IsVideo: String="0", @Query("PartNO", encoded = true) PartNO: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<MutableList<SerchDistributionInfo>>
    //物料查询
    @GET("ProcessService.aspx")
    fun searchThingNum(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1018", @Query("MacIP", encoded = true) MacIP: String,  @Query("SelectPre", encoded = true) SelectPre: String,@Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<ArrayList<ThingInfo>>
    //工位列表
    @GET("ProcessService.aspx")
    fun stationList(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1012", @Query("MacIP", encoded = true) MacIP: String, @Query("PartNO", encoded = true) PartNO: String, @Query("SelectPre", encoded = true) SelectPre: String,@Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<MutableList<StationInfo>>
    //开始播放
    @GET("ProcessService.aspx")
    fun playDistribution(@Query("method") method: String = "SaveData", @Query("ProcessID") ProcessID: String = "1003", @Query("PartNO", encoded = true) PartNO: String, @Query("json", encoded = true) json: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<String>
     //开始播放
    @GET("ProcessService.aspx")
    fun stopDistribution(@Query("method") method: String = "SaveData", @Query("ProcessID") ProcessID: String = "1004", @Query("json", encoded = true) json: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<String>
//    fun stopDistribution(@Query("method") method: String = "SaveData", @Query("ProcessID") ProcessID: String = "1004", @Query("json", encoded = true) json: String, @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<ResponseParent<String>>

    @GET("ProcessService.aspx")
    fun searchFlable(@Query("method") method: String = "SellOrderSearch", @Query("ProcessID") ProcessID: String = "1020", @Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<List<FlabelInfo>>

    @GET("ProcessService.aspx")
    fun saveFlable(@Query("method") method: String = "SaveData", @Query("ProcessID") ProcessID: String = "1005", @Query("MacIP", encoded = true) MacIP: String, @Query("WOID", encoded = true) WOID: String, @Query("FLabel", encoded = true) FLabel: String,@Query("Secret", encoded = true) Secret: String = "ls5Lf2VnWs9s6VEdnwYXVQ=="): Call<String>

}
